﻿#ifndef __H_DATABASEMGMT_H__
#define __H_DATABASEMGMT_H__

#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>

#include "DatabaseMgmt_global.h"


class CDatabaseMgmt
{
public:
	static CDatabaseMgmt* getInstance();


	void execSql(QString strSql, QSqlQuery& query);

protected:
	CDatabaseMgmt();
	virtual ~CDatabaseMgmt();

protected:
	void init();

private:

	QSqlDatabase m_sqliteDatabase;
};


#endif // __H_DATABASEMGMT_H__
